<template>
	<view class="my-wallet-success-container">
		<view class="wallet-status-content flex-column">
			<image class="wallet-icon" src="@/static/success.png" mode="aspectFill"></image>
			<text class="status-txt">{{_self.currentItem['desc']}}</text>
		</view>
	</view>
</template>

<script>
	const list = [
		{name: 'cashOut', title: '提现成功', desc: '提现成功，请至微信余额查看'},
		{name: 'addAccount', title: '绑定成功', desc: '账号绑定更成功'},
		{name: 'editAccount', title: '绑定成功', desc: '账号绑定更成功'},
		{name: 'bindShop', title: '绑定成功', desc: '绑定核销员成功'},
	]
	export default {
		data() {
			return {
				list,
				currentItem: list[0],
			}
		},
		onLoad(e) {
			let _self = this
			_self.currentItem = list.find(i => i.name == e.type) || {}
			uni.setNavigationBarTitle({
				title: _self.currentItem['title'] || '---'
			})
		},
	}
</script>
<style lang="scss" scoped>
	@mixin fontStyle($color, $size, $weight: 500) {
		color: $color;
		font-size: $size;
		font-weight: $weight;
	}
	.my-wallet-success-container{
		min-height: 100vh;
		background-color: #F4F8F9;
		padding: 0 20rpx;
		.wallet-status-content{
			align-items: center;
			padding-top: 120rpx;
			.wallet-icon{
				width: 400rpx;
				height: 400rpx;
			}
			.status-txt{
				margin-top: 6rpx;
				@include fontStyle(#AAAAAA, 24rpx);
			}
		}
	}
</style>




